<?php
namespace core\strategy\gender;

use core\strategy\UserStrategy;

class MaleUser implements UserStrategy
{
	public function output()
	{
		return "<div>
			<h2>{$this->showAd()}</h2>
			<div>
				{$this->showBanner()}
			</div>
		</div>";
	}

	public function showAd()
	{
		echo "2021男性电子产品" . PHP_EOL;
	}

	public function showBanner()
	{
		echo "<img src='https://qna.smzdm.com/202102/14/602946b1ef3406645.jpg_fo742.jpg'>" . PHP_EOL;
	}

}